import { Entity, PrimaryGeneratedColumn, Column, PrimaryColumn, BaseEntity, Repository, InsertResult } from "typeorm"
import { GameConfig } from "../../src/config/GameConfig"

@Entity("t_rooms")
export class RoomEntity {
    @PrimaryColumn()
    room_id:number
    @Column()
    name: string = ""
    @Column()
    roomType: number = 0
    @Column()
    game_type: number = GameConfig.Game_Type.Mj
    @Column("bigint")
    creator: number = 0
    @Column()
    conf_base: string = ""
    @Column()
    config_game: string = ""
    @Column()
    clubid: number = 0
    @Column()
    num_of_turns:number = 0    
    @Column()
    playerList:string = ""
    @Column()
    game_info_base:string = ""
    @Column()
    game_info_detail:string = ""
    @Column("datetime", { nullable: true })
    create_time:string = ""
    @Column()
    server_id:number=0




}